From 3032b23b8951793f768c8790f4b6b1a1244c36a8 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Thu, 14 Feb 2008 02:42:45 +0000 Subject: [PATCH] (sgml-mode): Fix comment syntax. --- lisp/ChangeLog | 4 ++++ lisp/textmodes/sgml-mode.el | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0929fe7982e..6648979827d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-02-14 Stefan Monnier + + * textmodes/sgml-mode.el (sgml-mode): Fix comment syntax. + 2008-02-13 Stefan Monnier * hilit-chg.el (highlight-save-buffer-state): New macro. diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index ed7bd87237a..37531306aa6 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -469,8 +469,12 @@ Do \\[describe-key] on the following bindings to discover what they do. sgml-transformation-function)) ;; This will allow existing comments within declarations to be ;; recognized. - (set (make-local-variable 'comment-start-skip) "\\(?:\\)?") + ;; I can't find a clear description of SGML/XML comments, but it seems that + ;; the only reliable ones are although it's not clear what + ;; "..." can contain. It used to accept -- ... -- as well, but that was + ;; apparently a mistake. + (set (make-local-variable 'comment-start-skip) "